#[[
A directory containing library targets
]]

# Include the libraries that we'll build

# The list of modules is ordered so that each library occurs after any others
# that it depends on
set( LIBRARIES
   lib-string-utils
   lib-strings
   lib-utility
   lib-components
   lib-basic-ui
   lib-exceptions
   lib-export-ui
   lib-preferences
   lib-math
   lib-files
   lib-import-export
   lib-ipc
   lib-registries
   lib-xml
   lib-audio-devices
   lib-project
   lib-screen-geometry
   lib-project-rate
   lib-file-formats
   lib-theme
   image-compiler # not a library, but has a place in their dependency graph
   lib-theme-resources
   lib-track
   lib-transactions
   lib-sample-track
   lib-module-manager
   lib-project-history
   lib-graphics
   lib-audio-graph
   lib-tags
   lib-realtime-effects
   lib-audio-io
   lib-wave-track
   lib-wave-track-settings
   lib-wave-track-paint
   lib-track-selection
   lib-project-file-io
   lib-command-parameters
   lib-numeric-formats
   lib-effects
   lib-time-frequency-selection
   lib-wx-wrappers
   lib-shuttlegui
   lib-wx-init
   lib-time-track
   lib-vst3
   lib-snapping
   lib-vst
   lib-ladspa
   lib-audio-unit
   lib-playable-track
   lib-time-and-pitch
   lib-mixer
   lib-channel
   lib-stretching-sequence
   lib-menus
   lib-viewport
   lib-music-information-retrieval
   lib-fft
   lib-concurrency
   lib-sqlite-helpers
   lib-preference-pages
   lib-dynamic-range-processor
   lib-audacity-application-logic
   lib-builtin-effects
   lib-label-track
   lib-wave-track-fft
)

if ( USE_LV2 )
   list( APPEND LIBRARIES lib-lv2)
endif()

if (USE_MIDI)
   list(APPEND LIBRARIES lib-note-track)
endif()

if ( USE_NYQUIST )
   list( APPEND LIBRARIES lib-nyquist-effects )
endif()

foreach( LIBRARY ${LIBRARIES} )
   add_subdirectory( "${LIBRARY}" )
endforeach()

set( GRAPH_EDGES "${GRAPH_EDGES}" PARENT_SCOPE )
